From 5ccd288712f8a5d1a65f8231e517ece0bd225468 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 19 Aug 2010 15:21:01 +0100 Subject: [PATCH] libxl: libxl_device_console.build_state is const This field always refers to a libxl_domain_build_state structure which is managed already by the caller, therefore it is incorrect to free it as part of libxl_device_console_destroy. (arguably this field should be a copy of, not a reference too, the original) [PATCH 06 of 16 of libxl: autogenerate type definitions and destructor functions] Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/libxl/libxl.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl.idl b/tools/libxl/libxl.idl index ea425de6b3..e3cca5a8de 100644 --- a/tools/libxl/libxl.idl +++ b/tools/libxl/libxl.idl @@ -195,7 +195,7 @@ libxl_device_console = Struct("device_console", [ ("domid", domid), ("devid", integer), ("consback", libxl_console_consback), - ("build_state", Reference(libxl_domain_build_state)), + ("build_state", Reference(libxl_domain_build_state), True), ("output", string), ]) -- 2.30.2